package backend.product.manager;

import org.hibernate.Session;

import core.product.model.ProductType;
import core.util.HibernateCoreUtil;

public class ProductTypeManager 
{
	public static ProductType getProductTypeByUuid(Long uuid)
	{
		Session session = HibernateCoreUtil.getSessionFactory().getCurrentSession();
		session.beginTransaction();
		ProductType pt = (ProductType) session.get(ProductType.class, uuid);	
		session.getTransaction().commit();
		return pt ;
	}
}
